package com.nzj.bandcampdroid;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.graphics.BitmapFactory;

/**
 * Created by joel on 16/07/13.
 */
public class PlayerService extends Service
{
//   public static final int NotificationId = 1;
//
//   private Notification _onGoing;



   @Override
   public int onStartCommand(Intent intent, int flags, int startId)
   {
//      Intent intent = new Intent(this, PlayerService.class);
//      PendingIntent pauseIntent = new PendingIntent().send(this, 0, intent);
//
//      _onGoing = new Notification.Builder(this)
//            .setContentTitle(getString(R.string.ApplicationTitle))
//            .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
//            .setOngoing(true)
//            .addAction(R.drawable.av_pause, "Pause", pauseIntent)
//            .getNotification();
//
//      startForeground(NotificationId, _onGoing);
      return START_STICKY;
   }

   @Override
   public IBinder onBind(Intent intent)
   {
      return null;
   }
}
